package com.zhang.product.service.impl;

import com.zhang.common.domain.Product;
import com.zhang.product.mapper.ProductMapper;
import com.zhang.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;
    @Override
    public Product getProductById(@RequestParam Integer id) {
        return productMapper.getProductById(id);
    }
}
